package com.zytlifeservice.repository.find;

import com.zytlifeservice.domain.find.ImageText;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

/**
 * 图文信息持久接口
 * Created by Administrator on 2017/6/2.
 */
@Repository
public interface ImageTextRepository extends JpaRepository<ImageText,Long> {
    //查询单个图文信息
    @Query(value = "select i from ImageText i where tname=?1")
    public ImageText getImageTexts(String tname);
}
